var net = require('net')

var echoServer = net.createServer(function(socket){

    console.log("connected: ")

    socket.setDefaultEncoding('utf-8')
    socket.setEncoding('utf-8')

    socket.on('data', function(data){
        socket.write(data)
        socket.write("you are vere gooddd ")
        var str = data.toString()
        socket.write('youdkdf'+str +"\r\n")
        console.log('rece :%s', data.toString())
    })
})


echoServer.listen(4500, function(){
    console.log('start listen on 4500')
})